package com.yzl.meeting.business.exception;

import com.yzl.meeting.business.rule.ResponseCode;
import lombok.Getter;

/**
 * @Title: BusinessException
 * @Author: 姚志立
 * @Description:
 * @Date: 2020/10/9 17:02
 * @Version: 1.0
 */

@Getter
public class BusinessException extends RuntimeException {
    private int code;
    private String msg;

    public BusinessException(ResponseCode rc) {
        super(rc.getMsg());
        this.code = rc.getCode();
        this.msg = rc.getMsg();
    }

}

